package com.lianxueda.drawing.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @author 29264
 * @TableName course_style
 */
@TableName(value ="course_style")
@Getter
@Setter
@NoArgsConstructor
public class CourseStyle implements Serializable {
    /**
     * 主键，唯一标识每条课堂风采记录
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 所属班级的唯一标识
     */
    @TableField(value = "courseId")
    private Integer courseId;

    /**
     * 课堂风采的具体内容
     */
    private String content;

    /**
     * 课堂风采的发布时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "publishTime")
    private LocalDateTime publishTime;

    /**
     * 课堂风采的查看次数，默认为0
     */
    @TableField(value = "viewCount")
    private Integer viewCount;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createdDate")
    private LocalDateTime createdDate;
    /**
     * 删除标记
     */
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}